package com.woniuxy.kaer.shop.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 郭建东
 * @since 2025年02月17日
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("product")
public class Product implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "product_id", type = IdType.AUTO)
    private Long productId;

    @TableField("product_name")
    private String productName;

    @TableField("price")
    private BigDecimal price;

    /**
     * 库存
     */
    @TableField("inventory")
    private Long inventory;

    /**
     * 0.上架 1.下架
     */
    @TableField("product_state")
    private Integer productState;

    /**
     * 冻结量
     */
    @TableField("freeze")
    private Long freeze;

    @TableField("product_picture")
    private String productPicture;

    /**
     * 产品描述
     */
    @TableField("product_remark")
    private String productRemark;

    /**
     * 品牌
     */
    @TableField("product_brand")
    private String productBrand;


}
